<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
port:<%=request.getServerPort() %>
服务器地址:<%=request.getRemoteAddr() %>
协议名称:<%=request.getProtocol() %>
<%request.setAttribute("company", "华南农业大学");
%>
<%
String username = request.getParameter("username");
String password = request.getParameter("password");
Object company = request.getAttribute("company");
%>
用户名：<%=username %>
密码：<%=password %>
公司：<%=company %>
</body>
</html>